<?php
//同类商品
$tonglei_goods=$goods_class->index_list(array('code'=>$goods['code']),21,1,"code='".$goods['code']."' and cid='".$goods['cid']."' and id!=".$goods['id']);
foreach($tonglei_goods as $k=>$row){
	if($row['data_id']!=$goods['data_id']){
		$tonglei_goods[$k]['view']=u('tao','view',array('iid'=>iid_encode($row['data_id'])));
	}
}
if(count($tonglei_goods)>10){
	unset($tonglei_goods[10]);
}
?>
    <div align="left" style="margin-top:20px;margin-bottom:10px;  font-family:微软雅黑;font-size:21px;">您可能感兴趣的宝贝</div>

   <!-- 分类下商品开始 -->
<div class="brand_big_list">
<ul class="goods_items">
<?php foreach($tonglei_goods as $row){?>
<li>
	              <div class="list-good">  
				      <div class="big_list">
	                                
									    <a class="click_url" dd-href="?mod=jump&act=s8&iid=<?=iid_encode($row['data_id'])?>&url=" data-itemid="<?=$row['data_id']?>" isconvert=1 href="<?=$row['url']?>" target="_blank">
									   
	                                <span class="pic">
										<?=dd_html_img($row['img'],$row['title'],500)?>
<?php if($row['top']>0){?><span class="tuijian"></span><?php }?>
		<?php if($row['is_starttime']){?>
<span class="yugao2"></span>
<?php }else{?>
<?php if($row['is_new']){?><span class="new-icon">新品</span><?php }?>
<?php }?>							
									</span></a>
									<div class="right">
	                                <div class="title yahei">
										<?php if($row['laiyuan_type']==1){?><div title="淘宝" class="tb"><i></i></div><?php }?>
                                       <?php if($row['laiyuan_type']==2){?><div title="天猫" class="tmall"><i></i></div><?php }?>
			    <?=$row['title']?></div>
	                                <div class="money_bg">
	                                    <div class="f_money2">内部券 <span><?=$row['price_jian']?></span> 元  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;过期时间：<?=$row['endtime']?></div>
	                                    <div class="f_money3">优惠券剩余：<span><?=$row['price_quan1']?></span> 张  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;已领取：<span><?=$row['price_quan2']?></span> 张</div>
						
						<div class="price mt-15 pb-5">
						<span class="l f-16 ml-20">劵后价：</span>
						<span class="l mr-5 mt-5">¥</span>
						<span class="l real"><?=number_format($row['discount_price'])?></span>  <del>￥<?=number_format($row['price'])?></del>
					</div>
					<p class="buy"> 
					<?php if($row['is_starttime']){?>
         <a class="yugao click_url" dd-href="?mod=jump&act=s8&iid=<?=iid_encode($row['data_id'])?>&url=" data-itemid="<?=$row['data_id']?>" isconvert=1 href="<?=$row['url']?>"  title="<?=$row['starttime_tag']?>开始" target="_blank"><?=$row['starttime_tag']?>开始</a>
          <?php }else{?>
         <a class="left1" href="<?=$row['lq_url']?$row['lq_url']:'javascript:void(0)'?>"  title="先领券再下单" target="_blank">点我领券</a>
                   <a class="right2 click_url" dd-href="?mod=jump&act=s8&iid=<?=iid_encode($row['data_id'])?>&url=" data-itemid="<?=$row['data_id']?>" isconvert=1 href="<?=$row['jump']?>" title="立即去淘宝购买" target="_blank">去<?php if($row['laiyuan_type']==1){?>淘宝<?php }?>
<?php if($row['laiyuan_type']==2){?>天猫<?php }?>下单</a>
            <?php }?>		
					</p>
        
	                                 
										
	                                </div>	</div>
	                            </div>	  
 <div class="xihuan">	
	<a class="y-like my-like" title="<?=$row['is_shoucang']==1?'已收藏':'加入收藏'?>" data_id="<?=$row['id']?$row['id']:$row['data_id']?>">
	<span class="like-ico <?=$row['is_shoucang']==1?'l-active':''?>"></span></a> </div>
                        	 </div></li>
<?php }?>
			   <!-- 分类下商品结束 -->	 
<script type="text/javascript" src="<?=TPLURL?>/vip/js/jquery.lazyload.js"></script> 
 <script type="text/javascript">	  
	$(function() {
	$("img").lazyload({
		effect : "fadeIn"
	});
});
</script>